HTMLify
index.html
Views: 323 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>Engraved Dark Theme Toggle</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" type="text/css" media="screen" href="style.css" /> </head> <body> <svg width="0" height="0"> <defs> <clipPath id="moon"> <path d="m27.5,25c-6.904,0-12.5-5.596-12.5-12.5,0-5.76,3.897-10.606,9.196-12.055C22.843.155,21.44,0,20,0,8.954,0,0,8.954,0,20s8.954,20,20,20,20-8.954,20-20c0-1.44-.155-2.843-.445-4.196-1.449,5.3-6.296,9.196-12.055,9.196Z" /> </clipPath> </defs> </svg> <label class="switch"> <span class="switch__icon switch__icon--light"> <span class="switch__icon-part switch__icon-part--1"></span> <span class="switch__icon-part switch__icon-part--2"></span> <span class="switch__icon-part switch__icon-part--3"></span> <span class="switch__icon-part switch__icon-part--4"></span> <span class="switch__icon-part switch__icon-part--5"></span> <span class="switch__icon-part switch__icon-part--6"></span> <span class="switch__icon-part switch__icon-part--7"></span> <span class="switch__icon-part switch__icon-part--8"></span> <span class="switch__icon-part switch__icon-part--9"></span> </span> <input class="switch__input" type="checkbox" role="switch" /> <span class="switch__icon switch__icon--dark"> <span class="switch__icon-part switch__icon-part--1"> <span class="switch__icon-part switch__icon-part--1a"></span> <span class="switch__icon-part switch__icon-part--1b"></span> </span> </span> <span class="switch__label">Dark Mode</span> </label> </body> </html> |